#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int x, y;
	scanf("%d %d", &x,&y);
	if (x > 0)
	{
		int y = 1;
	}
	else if (x==0)
	{
		int y = 0;
	}
	else(x < 0);
	{
		int y = -1;
	}
	printf("%d\n", y);
	return 0;
}